package DBLayer;

import ModelLayer.*;

import java.util.ArrayList;

public interface IfDbSupplier
{
    public ArrayList<Supplier> getAllSupplier(boolean retriveAssociation);

    public Supplier findSupplierByName(String name, boolean retriveAssociation);
    
    public Supplier findSupplierByID(int id, boolean retriveAssociation);

    public int insertSupplier(Supplier supplier) throws Exception;

    public int updateSupplier(Supplier supplier);
    
    public int deleteSupplier(String name);
}